package com.qf.feign;

import com.qf.entity.City;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("MICRO-CITY")
public interface CityFeign {


    @RequestMapping("/city/list")
    List<City> queryCityList();

    /**
     * 添加城市
     * @return
     */
    @RequestMapping("/city/insert")
    int insertCity(@RequestBody City city);

    /**
     * 修改城市的酒店数量
     * @return
     */
    @RequestMapping("/city/updateHotalNumber")
    int updateCityHotalNumber(@RequestParam Integer cid, @RequestParam Integer number);
}
